package org.example.cassell_client.service.fallback;

import com.github.pagehelper.PageInfo;
import lombok.extern.slf4j.Slf4j;
import org.example.cassell_client.service.TipServiceClient;
import org.example.entity.Base.Result;
import org.springframework.cloud.openfeign.FallbackFactory;

@Slf4j
public class TipClientFallbackFactory implements FallbackFactory<TipServiceClient> {
    @Override
    public TipServiceClient create(Throwable cause) {
        return new TipServiceClient() {
            @Override
            public Result<PageInfo> alltip(int PageNumber, int PageSize) {
                return null;
            }
        }
        ;
    }
}
